package service

import (
	"hcy-go/global/structs/table"
	"hcy-go/modules/system/repository"
)

type userSer struct {
}

var UserService = new(userSer)

func (s userSer) Create(user table.User) error {
	err := repository.UserDB.Create(&user)
	return err
}
